package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

/**
 * @author Administrator
 */
@SpringBootApplication
@MapperScan(basePackages = "com.example.demo.**.mapper")
@Slf4j
public class DemoApplication {

    public static void main(String[] args) {
        log.info(" - - - - - - DemoApplication main start - - - - - - ");
        SpringApplication.run(DemoApplication.class, args);
        log.info(" - - - - - - DemoApplication main end - - - - - - ");
    }

    @PostConstruct
    public void postConstruct(){
        log.info(" - - - - - - DemoApplication PostConstruct - - - - - - ");
    }


}
